package config

type DBEleConfig struct {
	Host               string `yaml:"host"`
	Port               string `yaml:"port"`
	Database           string `yaml:"database"`
	Username           string `yaml:"username"`
	Password           string `yaml:"password"`
	Charset            string `yaml:"charset"`
	Timeout            string `yaml:"timeout"`
	WriteTimeout       string `yaml:"write_timeout"`
	ReadTimeout        string `yaml:"read_timeout"`
	MaxIdleConnections int    `yaml:"max_idle_connections"`
	MaxOpenConnections int    `yaml:"max_open_connections"`
}

type DBLog struct {
	Enabled bool   `yaml:"enabled"`
	Level   string `yaml:"level"`
	OutPath string `yaml:"outPath"`
}

type dbEle struct {
	Log   DBLog       `yaml:"log"`
	Write DBEleConfig `yaml:"write"`
	Read  DBEleConfig `yaml:"read"`
}
